// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";

/** add POST /api/question/comment/add */
export async function addUsingPost(
  body: API.QuestionCommentAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/question/comment/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** adminDelete POST /api/question/comment/admin/delete */
export async function adminDeleteUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>(
    "/api/question/comment/admin/delete",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** delete POST /api/question/comment/delete */
export async function deleteUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/question/comment/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listPage POST /api/question/comment/list/page/vo */
export async function listPageUsingPost(
  body: API.QuestionCommentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageQuestionCommentVO_>(
    "/api/question/comment/list/page/vo",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
